package com.Khan.SocialRescueSys.service.impl;

import com.Khan.SocialRescueSys.dao.ProvinceDao;
import com.Khan.SocialRescueSys.pojo.Province;
import com.Khan.SocialRescueSys.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Khan Liu
 * @date 2022/4/4 16:55
 */
@Service
public class ProvinceServiceImpl implements ProvinceService {

    @Autowired
    private ProvinceDao provinceDao;

    @Override
    public List<Province> getForceProvince() {
        return provinceDao.getForceProvince();
    }

    @Override
    public List<Province> getAllProvince() {
        return provinceDao.getAllProvince();
    }

    @Override
    public Province getProvince(Long id) {
        return provinceDao.getProvince(id);
    }
}
